//
//  sprite.hpp
//  RPG
//
//  Created by Matt Bailey on 15/03/2014.
//  Copyright (c) 2014 Matt Bailey. All rights reserved.
//

#pragma once

#include "GL/glew.h"
#include "glm/glm.hpp"

#include <iostream>

using namespace std;

class Sprite {
    
    protected:
        glm::vec2 position;
        int linearPosition;
    
        int health;
        float speed;
        GLuint tileSheet;
    
    public:
        Sprite () {}
    
        glm::vec2 getPosition() { return position; }
    
        void init(glm::vec2 pos) { setPosition(pos); speed = 5; }
    
        void setPosition(glm::vec2 pos) { position = pos; }
        void setSpeed(float _speed) { speed = _speed; }
    
        float getSpeed() { return speed; }
    
        void updatePosition(glm::vec2 pos) { position += pos; }
};